package com.jjiang.bbmall.member.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class MemberLoginVo {

    @Length(min = 6, max = 18, message = "用户名必须是6-18位字符")
    @NotEmpty(message = "用户名必须提交")
    private String loginAccount;

    @Length(min = 6, max = 18, message = "密码必须是6-18位字符")
    @NotEmpty(message = "密码必须填写")
    private String password;
}
